import React from 'react';

import BlogHeader from '../components/blog/BlogHeader';
import BlogList from '../components/blog/BlogList';

class Category extends React.Component {
    constructor(props) {
        super(props);

        this.ctg_id = this.props.params.id;
    }

    componentDidMount() {

    }

    render() {
        return (
            <div className="content_main">
                <BlogHeader/>
                <div className="am-container">
                    <BlogList category={this.ctg_id}/>
                </div>
            </div>
        );
    }
}

Category.contextTypes = {
    router: React.PropTypes.object
};

export default Category;